<?php
	/**
	* @File name:	bootstrap.php
	* @Desription:	des
	* @Author:	 	jinxin<jx@178.com>   
	* @Date:	 	2012-3-25
	* @Copyright 	Copytright (c) 2008-2012 alucard.jx@gmail.com.
	*/
	
	define('DOCUMENT_PATH',realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
	define('ADMIN_PATH',DOCUMENT_PATH.'admin'.DIRECTORY_SEPARATOR);
	define('DOGA_PATH',DOCUMENT_PATH.'animine'.DIRECTORY_SEPARATOR);
	define('COMIC_PATH',DOCUMENT_PATH.'comic'.DIRECTORY_SEPARATOR);
	define('NOVEL_PATH',DOCUMENT_PATH.'novel'.DIRECTORY_SEPARATOR);
	define('CMS_PATH',DOCUMENT_PATH.'news'.DIRECTORY_SEPARATOR);
	define('LIB_PATH',DOCUMENT_PATH.'libs'.DIRECTORY_SEPARATOR);
	define('VIEW_PATH',DOCUMENT_PATH.'view'.DIRECTORY_SEPARATOR);
	define('UTIL_PATH',DOCUMENT_PATH.'util'.DIRECTORY_SEPARATOR);
	define('CONFIG_PATH',DOCUMENT_PATH.'configs'.DIRECTORY_SEPARATOR);
	define('SCRIPT_PATH',DOCUMENT_PATH.'scripts'.DIRECTORY_SEPARATOR);
	define('LOG_PATH',DOCUMENT_PATH.'logs'.DIRECTORY_SEPARATOR);
	
	require_once(CONFIG_PATH.'config.php');
	require_once(LIB_PATH.'loader.php');
	spl_autoload_register(array('loader', 'autoload'));